, by default a set of host lists can be written to a file and placed on the local host's ~/.dsh/group or/etc/dsh/ Group directory, so that it can be called by the "-G" parameter. For example: Pdsh-r ssh-g userhosts "Date", where "userhosts" is a host list file that can be placed in ~/.dsh/group or/etc/dsh/group directory -X This parameter is used to exclude all hosts within a specified group and is often used with the "-a" parameter. For example:Pdsh-r ssh-a-X userhosts "date"-Q This parameter
/home/foo.txt2. pslurp
Role: Copy files from multiple remote machines to a Local Machine
Example:
$ pslurp -h hosts.txt /etc/hosts local_dir3. pnuke
Role: Killing processes on remote hosts in parallel
Example:
$ pnuke -h hosts.txt -l root java4. prsync
Purpose: Use rsync to synchronize data from a local computer to a remote host.
Example:
$ prsync -r -h hosts.txt foo /home/fooReferences
Http://www.opstool.com/article/266
Http://linux.die.net/man/1/pssh
How to manage multiple servers at the same
No paid Red Hat system can not perform yum online installation, more depressed, existing a very useful cluster software clusterssh.
The steps to install and then use on a red hat are as follows:
1, Installation:
The Red Hat 6.3 version installs some packages, which are placed on top of my csdn and are stamped here for download.
These packages are then installed in the order of dependencies.
2, use:
Write configuration in/etc/clusters, such as Hadoop 10.11.1.190 10.11.1.191, and then start
Original article: http://liang3391.blog.51cto.com/178205/732100
Reference: http://www.ibm.com/developerworks/cn/aix/library/au-spunix_remoteserver/index.html
If you want to execute a command to thousands of servers simultaneously, copy a file, and kill a process, what tools can be used to simplify O M management? In small-scale use, I use for loop, which has a large quantity. On the one hand, I am not sure whether the operation is successful. On the other hand, the for loop statement has po
1, free of dense scenesMany users and scenarios are required to implement a user-free login between machines. such as Hadoop clusters, Oracle RAC, and so on.2, general operation-----This method is the simplest and direct, but it is between 2 pointsMachine a:192.168.1.1Machine b:192.168.1.2Requirements: Required on machine A can use the root user-free login to machine B (Note that this is also used to log on the root user)Steps:(1), create your own SSH key on machine ASsh-keygen-t rsa-p ' All the
row number
SEQ: print the row number
BC: Calculator
Factor: the factor that outputs an integer. The factor outputs an integer prime factor.
NC: Network debugging and Data Transmission
DD: move data between files and devices
File: determines the type of a file.
Stat: view the File status
Tac: output file content from the last line, which is opposite to CAT output
Shuf: randomly selects data for a file by row.
COMM: compare an ordered file by row
HD and BVI: outputs or edits binary fil
of a "binary" file;
BVI,Binary file editor;
Strings,Display printable characters in the file;
Tr,You can quickly implement simple character conversion. You can also delete the specified sub-string in the string and merge repeated strings in the string;
Iconv,Converts a specified file from one encoding to another.
Split,You can cut a file into smaller ones. Each 1000 rows can be cut into a smaller one by default;
Csplit,After the files are cut according to the specified template styl
Two days ago, the "some little-known but interesting Unix/Linux commands" series were released.Article, Received praise from some friends. (I wanted to write "a lot of friends", but I thought Linux was really a small crowd, so brother D would not be forced! Haha) D. Will make persistent efforts. The links to the first two articles are as follows:
Some little-known but interesting Unix/Linux commands (1)
Some little-known but interesting Unix/Linux commands (2)
In the third artic
Ldd: View dynamic library information
Nm: view the symbol table in the target file
AB: website server stress testing tool
Strace: Debug System calls
Mtr: a better route tracking tool for network debugging
Cssh: visual concurrent shell
Wireshark and tshark: packet capture and network debugging
Host and dig: find DNS
Lsof: View process file descriptors and socket information
Dstat: a useful statistical tool for system data.
Iostat: CPU and d
the factor output as an integer
NC: Network debugging and data transmission
DD: Move data between files and devices
File: Determine the type of a document
Stat: View file status
TAC: Output The file contents from the last line, and the cat output is the opposite
Shuf: Random selection of data on a file by row
Comm: Compare an ordered file by row
HD and BVI: Output or edit binary files
Strings: Viewing the contents of a binary file
TR: Character translation or manipulation of
debugging and data transmission
socat: Socket broker, with netcat similar
slurm: Network Visualization
dd: Transferring data between files or devices
file: Determine file type
tree: Displays the path and file as a tree, similar to the recursivels
stat: File information
tac: Reverse Output file
shuf: Select a few lines randomly in the file
comm: A row of rows comparing a sorted file
pv: Monitor data through the pipeline
hdand bvi : Save or edit a binary file
strings: Extr
named these nodes N1, N2 、... N5, and established DNS and host operating systems between them.
In order to create a partition, you need some way to cut or delay messages, such as firewall rules. On Linux, you can use the Iptables-a input-s some-peer-j drop command to create a one-way partition in which messages from certain nodes to the current node are cut off. When you apply these rules to multiple hosts, you create an artificial pattern of network data loss.
Running these commands repeated
Contact Us
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.